#divContainer {
    /**/
    width: 100%;
    height: 100%;
    padding: 20px;
    margin: 0 auto;
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

#divContainer > div {
    width: 2000px;
    overflow: hidden;
    white-space: nowrap;
    zoom: 0.6;
}

.template{
    display: inline-block;

}

.template .activename{
    font-size: 18px;
}

.template-container-sub-end,
.template-container-sub {

    width: 150px;
    height: 120px;
    margin-bottom: 10px;
    margin-right: 20px;
}

.template-container-sub-end > div,
.template-container-end > div,
.template-container-start > div,
.template-container-main > div,
.template-container-sub > div {
    position: relative;
    width: 100%;
    height: 100%

}

/*.template-container-sub-end > div > div,*/
/*.template-container-end > div > div,*/
/*.template-container-start > div > div,*/
/*.template-container-main > div > div,*/
/*.template-container-sub > div > div {*/
/*position: absolute;*/
/*}*/
.template > div > div {
    position: absolute;
}

.template-container-sub > div > .activename {
    z-index: 100;
    border: 1px solid #555;
    border-radius: 3px;
    background-color: white;
    width: 100px;
    height: 60px;
    line-height: 60px;

    text-align: center;
    right: -20px;
    cursor: pointer;
}

.template-container-sub > div > .activename:hover {
    border: 1px solid orange;
    background-color: #eee;
}

.template-container-sub-end > div > .line,
.template-container-sub > div > .line {
    z-index: 99;
    background-color: #555;
    left: 0;
    top: 30px;
    height: 6px;
    margin-top: -3px;
    width: 50px;
}

.template-container-sub-end > div > .line > div,
.template-container-sub > div > .line > div {
    position: absolute;
    border-radius: 5px;
    width: 10px;
    height: 10px;
    left: 50%;
    top: 50%;
    margin-top: -5px;
    margin-left: -5px;
    background-color: red;
    display: none;
    cursor: pointer;
}

.template-container-sub > div > .line :hover > div {
    display: block;
}

.template-container-sub-end > div > .triangle-right,
.template-container-sub > div > .triangle-right {
    width: 0;
    height: 0;
    border-width: 10px 0 10px 30px;
    border-style: solid;
    border-color: transparent transparent transparent #555;
    z-index: 100;
    left: 40px;
    top: 30px;
    margin-top: -10px;
}

.template-container-main {
    width: 100px;
    height: 120px;
    margin-bottom: 10px;
}

.template-container-main > div > .activename {
    z-index: 100;
    border: 1px solid #555;
    border-radius: 3px;
    background-color: #ccffff;
    color: #222;
    width: 100%;
    height: 60px;
    line-height: 60px;
    cursor: pointer;
    text-align: center;
}

.template-container-main > div > .line {
    z-index: 99;
    background-color: #555;
    left: 50%;
    top: 60px;
    height: 60px;
    margin-left: -3px;
    width: 6px;
}

.template-container-start > div > .triangle-bottom,
.template-container-main > div > .triangle-bottom {
    width: 0;
    height: 0;
    border-width: 30px 10px 0 10px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
    z-index: 100;
    left: 50%;
    bottom: -12px;
    margin-left: -10px;

}

.template-container-start > div > .line > div,
.template-container-main > div > .line > div {
    cursor: pointer;
    position: absolute;
    border-radius: 5px;
    width: 10px;
    height: 10px;
    left: 50%;
    top: 50%;
    margin-top: -5px;
    margin-left: -5px;
    background-color: red;
    display: none;
}

.template-container-end,
.template-container-start {
    width: 100px;
    height: 120px;
    margin-bottom: 10px;
    margin-right: 20px;
}

.template-container-end{
    height: 50px;
}

.template-container-end > div > .activename,
.template-container-start > div > .activename {
    border: 1px solid #222;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    left: 50px;
    margin-left: -25px;
}

.template-container-start > div > .activename {
    background: radial-gradient(at 20px 20px, #669966 5%, #336633 50%);
}

.select > div > .activename,
.select > div > .activename:hover {
    background-color: orange;
    color: white;
}

.template-container-start > div > .line {
    z-index: 99;
    background-color: #555;
    left: 50%;
    top: 50px;
    height: 60px;
    margin-left: -3px;
    width: 6px;
}

.template-container-end > div > .activename {
    background: radial-gradient(at 20px 20px, #ee5588 5%, #CC0033 50%);

}

.template-container-sub-end {
}

.template-container-sub-end > div > .activename {
    cursor: pointer;
    background: radial-gradient(at 20px 20px, #ee5588 5%, #CC0033 50%);
    border: 1px solid #222;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    left: 70px;
    top: 30px;
    margin-top: -25px;
}